// 房东租房
#include <iostream>
#include <string>

class RentHouse
{
public:
    virtual void rentHouse() = 0;
};

class Landload : public RentHouse
{
public:
    void rentHouse()
    {
        std::cout << "将房子租出去\n";
    }
};

class InterMediary : public RentHouse
{
public:
    void rentHouse()
    {
        std::cout << "发布招聘启示\n";
        std::cout << "带人看房\n";
        _landload.rentHouse();
        std::cout << "负责售后维修\n";
    }

private:
    Landload _landload;
};

int main()
{
    InterMediary intermediary;
    intermediary.rentHouse();
    return 0;
}